Object.defineProperty(exports, "__esModule", {
    value: !0
});

var e = Object.assign || function(e) {
    for (var r = 1; r < arguments.length; r++) {
        var o, t = arguments[r];
        for (o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
    }
    return e;
};

exports.promisify = function(r, o) {
    return new Promise(function(t, n) {
        r(e({}, o, {
            success: t,
            fail: function(e) {
                console.error("WX PROMISIFY ERROR: ", e), n(e);
            }
        }));
    });
};